import java.rmi.Naming;

public class Directory {

	public static void main(String[] args){
		try{
			Naming.rebind("DirServ", new DirectoryService());
			System.out.println("Directory is ready . . .");
		}catch(Exception e){
			System.out.println("Directory failed: " + e);
		}
	}
}